#pragma once
#include "IFDInterface.h"

FRESULT rdisk_initialize(void* obj,const char* path,unsigned int mode);
FRESULT rdisk_status (const char* path,_info* info) ;
FRESULT rdisk_read (
    void* obj,               /* Physical drive number (0) */
    char* buff,             /* Pointer to the data buffer to store read data */
    DWORD count,			/* Sector count (1..255) */
    DWORD sector           /* Physical drive nmuber (0) */
    );

FRESULT rdisk_write (
    void* obj,           /* Physical drive number (0) */
    const char* buff,       /* Pointer to the data to be written */
    DWORD count,
    DWORD sector           /* Start sector number (LBA) */
    );             /* Sector count (1..255) */

FRESULT rdisk_ioctl (
    void* obj,               /* Physical drive number (0) */
    BYTE ctrl,              /* Control code */
    void *buff);             /* Buffer to send/receive control data */

extern _file_op root_diskop;
